<?php 
session_start();

$err="";
if(isset($_SESSION['error'])){
	$err = $_SESSION['error'];
	$_SESSION['error']="";
}
?>
	
<?php
require_once('../config.php');
require_once('include_dao.php');

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Bling</title>
<script type='text/javascript' src='<?php echo $base ?>/js/login.js'></script>
<script type='text/javascript' src='<?php echo $base ?>/js/validator.js'></script>
<script type='text/javascript' src='<?php echo $base ?>/js/script.js'></script>
<style type="text/css">
<!--
@import url("../css/style.css");
-->
</style>
</head>

<body>

<table width="100%" cellpadding="0" >
  <tr>
    <td width="40">&nbsp;</td>
    <td width="602"><table width="795" border="0" align="center" cellpadding="0">
      <tr>
        <td width="106" height="42"><div align="center" class="style8">Site Name &amp; Logo </div></td
		><td width="490" class="style4">&nbsp;</td>
        <td width="191"><div align="center" class="style16">ADMINISTRATION MENU</div></td>
      </tr>
    </table>
    <hr align="center" width="860" size="1" /></td>
    <td width="52">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="420" valign="middle"><div align="center">
	


<form method="post" action="admin-home.php">


	  
	  <table width="328" cellpadding="15">
        <tr>
          <td width="290"><span class="style21" ><div align="center" id="error" name="error">
		  <?php if($err!=""){		echo $err; }?>
		  </div></span></td>
        </tr>
        <tr>
          <td>      <table width="280" cellpadding="15" bgcolor="#CCCCCC">
        <tr>
          <td colspan="2"><div align="center" class="styleLabel style15 style15 style15 style15 style15 style11 style15 style15 style15 style17">Administrator Login</div></td>
        </tr>
        <tr>
          <td class="style16">Username</td>
          <td><input name=username id=username type=text class="style3" maxlength="15"/></td>
        </tr>
        <tr>
          <td height="10" class="style16">Password</td>
          <td><input name=password id=password type=password class="style3" maxlength="15"/></td>
        </tr>
        <tr>
          <td height="54" colspan="2">
            <div align="center">
              <input type=submit value="login" name=login id=login  style="color:white;font-weight:bold;background-color:#1A6A96;width:80px;height:25px" onclick="return checkLogin('username','password');" >
              </div></td></tr>
      </table></td>
        </tr>
      </table>
</form>  



<?php include("admin-footer.php"); ?>
